<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8"/>
    <!--标识百度适应pc和mobile-->
    <meta name="applicable-device" content="pc,mobile">
    <!--禁止百度转码-->
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--启用360浏览器的极速模式-->
    <meta name="renderer" content="webkit"/>
    <!-- 强制Chromium内核，作用于其他双核浏览器 -->
    <meta name="force-rendering" content="webkit"/>
    <!--优先使用 IE 最新版本和 Chrome-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <!--避免IE使用兼容模式-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!--针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓-->
    <meta name="HandheldFriendly" content="true"/>
    <!--搜索引擎蜘蛛-->
    <meta name="Baiduspider" content="index,follow,noarchive"/>
    <meta name="robots" content="index,follow"/>
    <!--作者及版权-->
    <meta name="author" content="Janecraft"/>
    <meta name="copyright" content="Janecraft"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>
    <title>Title</title>
    <meta name="keywords" content="关键词"/>
    <meta name="description" content="描述"/>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/css/animate.css" rel="stylesheet">
    <link href="/css/style.css?v=4.1.0" rel="stylesheet">

    <link href="/bootstraptable/bootstrap-table.min.css" rel="stylesheet">
    <style>
        .text_bottom_border{
            border: none;
            border-bottom: 1px solid black;
        }

        .text_no_border{
            border: none;
        }
    </style>
</head>
<body>
<div class="container">
    <div style="width: 1200px;margin: 0 auto;">
        <h5 style="color: #3e79b6">您正在做的业务是：产品设计--生产计划管理--新发生产品计划登记复核</h5>
    </div>

    <div class="panel panel-default">
        <form class="form-horizontal" id="module_form">
            <div class="panel-heading" style="text-align: right">
                <button type="button" id="preview_btn" class="btn btn-info">未通过</button>
                <button type="button" id="submit_btn" class="btn btn-info">通过</button>
                <button type="button" id="return_btn"class="btn btn-info">返回</button>
            </div>
            <div class="panel-body">

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="applyId">计划单编号：</label>
                        <div class="col-sm-8">
                            <input type="text" name="applyId" id="applyId"
                                   class="form-control text_bottom_border"
                                   value="">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="productId">产品编号：</label>
                        <div class="col-sm-8">
                            <input type="text" name="productId" id="productId"
                                   class="form-control text_bottom_border"
                                   value="">
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="productName">产品名称：</label>
                        <div class="col-sm-8">
                            <input type="text" name="productName" id="productName"
                                   class="form-control"
                                   value="">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="productDescribe">描述：</label>
                        <div class="col-sm-8">
                            <input type="text" name="productDescribe" id="productDescribe"
                                   class="form-control text_bottom_border"
                                   value="">
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="amount">数量：</label>
                        <div class="col-sm-8">
                            <input type="text" name="amount" id="amount"
                                   class="form-control"
                                   value="">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="register">登记人：</label>
                        <div class="col-sm-8">
                            <input type="text" name="register" id="register"
                                   class="form-control text_bottom_border"
                                   value="">
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="registerTime">登记时间：</label>
                        <div class="col-sm-8">
                            <input type="text" name="registerTime" id="registerTime"
                                   class="form-control"
                                   value="">
                        </div>
                    </div>
                </div>


                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="designer">设计人：</label>
                        <div class="col-sm-8">
                            <input type="text" name="designer" id="designer"
                                   class="form-control text_bottom_border"
                                   value="">
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label">备注：</label>
                        <div class="col-sm-8">
                            <textarea class="form-control" id="remark" name="remark"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    </div>
</div>

<!-- 全局js -->
<script src="/js/jquery.min.js?v=2.1.4"></script>
<script src="/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/js/plugins/layer/layer.min.js"></script>

<!-- 自定义js -->
<script src="/js/hAdmin.js?v=4.1.0"></script>
<!--<script type="text/javascript" src="/js/index.js"></script>-->

<!-- 第三方插件 -->
<script src="/js/plugins/pace/pace.min.js"></script>

<!--BootstrapTable-->
<script src="/bootstraptable/bootstrap-table.min.js"></script>
<script src="/bootstraptable/locale/bootstrap-table-zh-CN.min.js"></script>
<script>
    $(function () {
        //从页面作用域取出id
        let id = localStorage.getItem("id")

        //根据id查询对应的产品档案
        $.get("/procedure/apply/manufactureApplyGetId", {"id": id}, function (data) {
            //设置产品名称和产品编号的回显
            $("#module_form #applyId").val(data.applyId)
            $("#module_form #productId").val(data.productId)
            $("#module_form #productName").val(data.productName)
            $("#module_form #productDescribe").val(data.productDescribe)
            $("#module_form #amount").val(data.amount)
            $("#module_form #designer").val(data.designer)
            $("#module_form #register").val(data.register)
            $("#module_form #registerTime").val(data.registerTime)
            $("#module_form #remark").val(data.remark)
        }, "json")

        $("#submit_btn").click(function (){
            $.post("/procedure/apply/manufactureApplyReviewPassed","id="+id,function (data){
                if(data){
                    window.location="/design/design_successUI"
                }
            })
        })

        //点击返回按钮
        $("#return_btn").click(function () {
            window.location="/procedure/design_apply_queryUI"
        })
    })
</script>
</body>
</html>